<?php
$this->breadcrumbs=array(
	'Artists'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'List Artist', 'url'=>array('index')),
	array('label'=>'Create Artist', 'url'=>array('create')),
	array('label'=>'Update Artist', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Artist', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Artist', 'url'=>array('admin')),
);
?>

<h1>View Artist <?php echo $model->name; ?></h1>

<?php
$criteria=new CDbCriteria;
$criteria->condition = "artist = :artist";
$criteria->params = array(":artist" => "$model->id");
$dataProvider=new CActiveDataProvider('ArtistProject', array(
    'pagination'=>array(
        'pageSize'=>30,
    ),
    'criteria'=>$criteria,
));
$this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'/artistProject/_view',
));
?>
